#!/usr/bin/python3

KK = '2 89 78 23 13'
arr = KK.split(' ')
arr.reverse()
KKr = ' '.join(arr)
print(KKr)
